﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace Qianke.Core.Common.NameMutex
{
    public class NameMutexOptions
    {
        public string MutexTypeName { set; get; } = "Local";

        public string RedisServerIP { set; get; }

        public int RedisServerPort { set; get; }

        public string RedisPassword { set; get; }


        /// <summary>
        /// 锁自动过期时间，单位秒
        /// </summary>
        public int LockExpirySeconds { set; get; } = 60;

        /// <summary>
        /// 等待锁的超时时间，单位秒
        /// </summary>
        public int WaitLockSeconds { set; get; } = 30;
    }
}
